import { BlankResult } from '@/store/answer/types';
import { Blank } from '../../types';

export default class BankAdapter {
  compose(value: BlankResult[]): Blank[] {
    const result: Blank[] = [];

    value.forEach((item) => {
      const vo: Blank = {
        answer: item.answer,
        createTime: item.createTime,
        detailsId: '',
        displayOrder: 0,
        queId: '',
      };

      result.push(vo);
    });

    return result;
  }
}
